
<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="" onsubmit="return navTabSearch(this)">
<div class="pageHeader">
    <div class="searchBar">
        <ul class="searchContent">
            <li><label><@label key='personnelCode.C,colon'>人员编号：</@label></label> <input type="text" name="personnelCode" value="${condition.personnelCode!''}"/></li>
            <li><label><@label key="personnelName.C,colon">姓名：</@label></label> <input type="text" name="personnelName" value="${condition.personnelName!''}"/></li>
            <li><label><@label key="skillLevele.C,colon">等级：</@label></label>
                <select name="skillLeveleCode">
                    <option value=""><@label key="all.C">所有</@label></option>
                    <#if killLevele??>
                        <#list killLevele as ecode>
                            <option value="${ecode.eCode!''}" <#if condition.skillLeveleCode?? && condition.skillLeveleCode == ecode.eCode> selected</#if> >${ecode.eCodeText!''}</option>
                        </#list>
                    </#if>
                </select>
            </li>
        </ul>
        <ul class="searchContent">
            <li ><label><@label key="personnelTypeCode.C,colon">人员类型编号：</@label></label> <input type="text" name="personnelTypeCode" value="${condition.personnelTypeCode!''}"/></li>
            <li ><label><@label key="personnelTypeText.C,colon">人员类型描述：</@label></label> <input type="text" name="typeText" value="${condition.typeText!''}"/></li>
            <li ><label><@label key="defaultTypeFlag.C,colon">默认类型：</@label></label>
                 <select name="defaultTypeFlag">
                        <option value=""><@label key="all.C">所有</@label></option>
                        <option value="0"<#if condition.defaultTypeFlag?? && condition.defaultTypeFlag == 0> selected="selected"</#if>><@label key="no.C">否</@label></option>
                        <option value="1"<#if condition.defaultTypeFlag?? && condition.defaultTypeFlag == 1> selected="selected"</#if>><@label key="yes.C">是</@label></option>
                </select>
            </li>
            <li class="query">
                <div class="buttonActive">
                    <div class="buttonContent">
                        <button type="submit"><@label key="query.B">查询</@label></button>
                    </div>
                </div>
            </li>
        </ul>
    </div>
</div>
</form>

<div class="pageContent">

    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="personnelTypeAssign_add" labelKey="add.B" defalutName="新增">
            <li><a class="add"  mask="true" width="650" height="240" href="${rc.getContextPath()}/manage/ptassign/addPersonnelTypeAssign?navTabId=${navTabId!''}" target="dialog" title="<@label key='add.B'>新增</@label>"><span><@label key='add.B'>新增</@label></span></a></li>
            </@buttonRight>
            <@buttonRight menuCode="personnelTypeAssign_edit" labelKey="edit.B" defalutName="编辑">
            <li><a class="edit" mask="true" width="650" height="240" href="${rc.getContextPath()}/manage/ptassign/modifyPersonnelTypeAssign?id={personnelTypeAssign_id}&navTabId=${navTabId!''}" target="dialog" title="<@label key='edit.B'>修改</@label>"><span><@label key='edit.B'>修改</@label></span></a></li>
            </@buttonRight>
            <@buttonRight menuCode="personnelTypeAssign_view" labelKey="view.B" defalutName="详情">
            <li><a class="icon" mask="true" width="650" height="240" target="dialog" mask="true" resizable="false" rel="viewPersonnelTypeAssign"
            href="${rc.getContextPath()}/manage/ptassign/viewPersonnelTypeAssign?id={personnelTypeAssign_id}&navTabId=${navTabId!''}"><span><@label key="view.B">详情</@label></span></a></li></@buttonRight>
            <@buttonRight menuCode="personnelTypeAssign_delete" labelKey="delete.B" defalutName="删除">
            <li><a class="delete" target="selectedTodo" href="${rc.getContextPath()}/manage/ptassign/deletePersonnelTypeAssign?navTabId=${navTabId!''}" postType="string" rel="ids" callback="batchjobAjaxDone"
                title="<@label key='confirmDelPersonnelTypeAssign.M'>确认要删除选择的人员与类型吗？</@label>" ><span><@label key="delete.B">删除</@label></span>
                </a></li></@buttonRight>
        </ul>
    </div>
    <table class="table" width="100%" layoutH="164">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="30"><@label key="serialNumber.C">序号</@label></th>
                <th width="120" orderField="personnelCode" <#if (page.orderField?? && page.orderField == 'personnelCode')>class="${page.orderDirection!''}"</#if>><@label key='personnelCode.C'>人员编号</@label></th>
                <th width="120" ><@label key='personnelName.C'>姓名</@label></th>
                <th width="100"><@label key='personnelTypeCode.C'>人员类型编号</@label></th>
                <th width="100"><@label key='personnelTypeText.C'>人员类型描述</@label></th>
                <th width="80"><@label key='skillLevele.C'>等级</@label></th>
                <th width="80"><@label key='defaultTypeFlag.C'>是否默认类型</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as ptassign>
            <tr target="personnelTypeAssign_id" rel="${ptassign.personnelCode!''}@_@${ptassign.personnelTypeCode!''}">
                <td><input name="ids" value="${ptassign.personnelCode!''}@_@${ptassign.personnelTypeCode!''}" type="checkbox"></td>
                <td>${page.startRow + ptassign_index}</td>
                <td>${ptassign.personnelCode!''}</td>
                <td>${ptassign.personnelName!''}</td>
                <td>${ptassign.personnelTypeCode!''}</td>
                <td>${ptassign.typeText!''}</td>
                <td>
                <#if killLevele??>
                    <#list killLevele as ecode>
                        <#if ptassign.skillLeveleCode?? && ptassign.skillLeveleCode == ecode.eCode> ${ecode.eCodeText!''}<#break></#if>
                    </#list>
                </#if>
                </td>
                <td><#if (ptassign.defaultTypeFlag == 1)><@label key="yes.C">是</@label><#else><@label key="no.C">否</@label></#if></td>
            </tr>
        </#list>
        <#else>
        <tr target="personnelTypeAssign_id">
                <td colspan="12" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        <#else>
        <tr target="personnelTypeAssign_id">
                <td colspan="12" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
        <#include "/common/panelBar.html">
</div>